package com.xuxiao.service;

import com.xuxiao.common.CardAndBalance;
import com.xuxiao.common.CartAndName;
import com.xuxiao.common.NameAndCardID;
import com.xuxiao.entrty.CardInfo;

import java.util.List;

public interface CardInfoService {
    void addCard(CardInfo cardInfo);

    List<CartAndName> SelectAll();

    List<CardInfo> SelectByID(String id);

    void DeleteCardByID(List<Integer> ids);

    void updateCardBy(CardInfo cardInfo);

    List<CardInfo> getCardByUserID(String id);

    void plusByCard(CardInfo cardInfo);

    List<CardAndBalance> getAllCartBalance(String id);

    List<NameAndCardID> getNameAndCardID(String id);

    int IsCorrect(CardInfo cardInfo);
}
